package com.ezops.dtcc.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ezops.dtcc.model.ReportingMessage;

public class ReportingMessageRowMapper implements RowMapper {
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		ReportingMessage reportingMessage = new ReportingMessage();
		reportingMessage.setMsgId(rs.getString("MSG_ID"));
		reportingMessage.setMsgType(rs.getString("MSG_TYPE"));
		reportingMessage.setFpml(rs.getString("FPML"));

		return reportingMessage;
	}
}
